package demo1;

/**
 * Version: 1.1
 * Author: TangJun
 * Date: 2024-07-17
 */



public class Test {
    public static void main(String[] args) {
        Computer com = new Computer();
        com.powerOn();

        com.useDevice(new Mouse());
        com.useDevice(new KeyBoard());

        com.powerOff();
    }
}
